package com.epoint.mobileoa.ui.notice;

import java.util.HashMap;
import java.util.Map;

import android.os.Message;

import com.epoint.mobileoa.bizlogic.NewTask;
import com.epoint.mobileoa.bizlogic.SuperView;
import com.epoint.mobileoa.tools.HttpUtil;

/**
 * @author liyc
 * @time 2013-2-4 下午5:14:15
 * @annotation
 */
public class SendFeedBackContentTask extends NewTask {

	public SendFeedBackContentTask(SuperView sv, int taskID,
			Map<String, Object> param, String progressMsg,
			int progressDialogType) {
		super(sv, taskID, param, progressMsg, progressDialogType);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void exectue(Message mess) throws Exception {
		// TODO Auto-generated method stub
		String infoguid = getParam().get("infoguid").toString();
		String feedContent = getParam().get("feedcontent").toString();
		String userguid = fp.getUserguid();
		String displayName = fp.getDisplayname();
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("infoguid", infoguid);
		map.put("feedContent", feedContent);
		map.put("userguid", userguid);
		map.put("displayName", displayName);
		map.put("ipaddress", "Android");
		String seamurl = generateURL("SaveFeedBackInfo");
		String bs = HttpUtil.post(seamurl, map, null);
		setMessageToRefreshUI(mess, bs);
	}

}
